package com.ruoyi.aproduct.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文物产品管理对象 sh_product
 * 
 * @author ruoyi
 * @date 2021-12-29
 */
public class ShProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 产品名 */
    @Excel(name = "产品名")
    private String sname;

    /** 图画 */
    @Excel(name = "图画")
    private String img;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pubdate;

    /** 点击量 */
    @Excel(name = "点击量")
    private Integer clickNum;

    /** 介绍 */
    @Excel(name = "介绍")
    private String intrduce;

    /** 是否精品 */
    @Excel(name = "是否精品")
    private Integer isGood;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSname(String sname) 
    {
        this.sname = sname;
    }

    public String getSname() 
    {
        return sname;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setPubdate(Date pubdate) 
    {
        this.pubdate = pubdate;
    }

    public Date getPubdate() 
    {
        return pubdate;
    }
    public void setClickNum(Integer clickNum) 
    {
        this.clickNum = clickNum;
    }

    public Integer getClickNum() 
    {
        return clickNum;
    }
    public void setIntrduce(String intrduce) 
    {
        this.intrduce = intrduce;
    }

    public String getIntrduce() 
    {
        return intrduce;
    }
    public void setIsGood(Integer isGood) 
    {
        this.isGood = isGood;
    }

    public Integer getIsGood() 
    {
        return isGood;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sname", getSname())
            .append("img", getImg())
            .append("pubdate", getPubdate())
            .append("clickNum", getClickNum())
            .append("intrduce", getIntrduce())
            .append("isGood", getIsGood())
            .toString();
    }
}
